<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jquery-3.7.1.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function(){
				$("input")
				let n1 =$(":text").eq(0).val()
				let n2 =$(":text").eq(1).val()
				let res = n1/1+n2/1
				$(":disabled").va(res.toFixed(15)-0)
				// $(":disabled").val(eval($(":text").eq(0).val()+"+"+$(":text").eq(1).val()))
			})
		</script>
	</head>
	<body>
		<input type="text" placeholder="第一个数" size="10"/>
		<input type="text" placeholder="第二个数" size="10"/>
		<input type="text" placeholder="计算结果" size="10" disabled="disabled"/>
	</body>
</html>
